package zheezes.protocol.impl.gd;

public final class DataItemDesc implements Cloneable {
	private short di;
	private int size;
	private boolean inverse;
	private String description;

	// avoid other class to new
	public DataItemDesc(short di, int size, boolean inverse, String description) {
		this.di = di;
		this.size = size;
		this.inverse = inverse;
		this.description = description;
	}

	public short getDi() {
		return di;
	}

	public int getSize() {
		return size;
	}

	public boolean isInverse() {
		return inverse;
	}

	public String getDescription() {
		return description;
	}

	@Override
	public Object clone() {
		return new DataItemDesc(di, size, inverse, description);
	}
}
